/***API***/
import * as baseAPI from "@/api";
import qs from "qs";
const request = baseAPI.request;

const API = {
  getList: obj => {
    let requestData = {
      method: "post",
      url: "YWMsg/GetAllYWMsgModels2",
      data: obj
    };
    return request(requestData);
  },

  editSubmit: obj => {
    let requestData = {
      method: "post",
      url: "YWMsg/UpdateYWMsg2",
      data: obj
    };
    return request(requestData);
  },

  addSubmit: obj => {
    let requestData = {
      method: "post",
      url: "YWMsg/AddYWMsg2",
      data: obj
    };
    return request(requestData);
  },
  ////////////////
  details: obj => {
    let requestData = {
      method: "get",
      url: "YWMsg/GetOneYWMsgModel2",
      params: obj
    };
    return request(requestData);
  },

  delete: obj => {
    let requestData = {
      method: "post",
      url: "YWMsg/DelYWMsg2",
      data: obj
    };
    return request(requestData);
  },

  getClassification: obj => {
    let requestData = {
      method: "post",
      url: "YWDev/ywDMGetDSs2",
      data: obj
    };
    return request(requestData);
  }
};

export default API;
